package com.ruoyi.behindDoctor.service.impl;

import com.ruoyi.behindDoctor.domain.yDocDepartment;
import com.ruoyi.behindDoctor.mapper.yDocDepartmentMapper;
import com.ruoyi.behindDoctor.service.IyDocDepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

/**
 * 科室Service业务层实现
 * 
 * @author ruoyi
 * @date 2025-08-18
 */
@Service
public class yDocDepartmentServiceImpl implements IyDocDepartmentService {

    @Autowired
    private yDocDepartmentMapper departmentMapper;

    @Override
    public List<yDocDepartment> getAllDepartments() {
        return departmentMapper.selectAllDepartments();
    }

    @Override
    public yDocDepartment getDepartmentById(Integer departmentId) {
        return departmentMapper.selectDepartmentById(departmentId);
    }
}